﻿<%@ Page Title="" Language="C#" MasterPageFile="~/OuterInfo/OuterInfo.Master" AutoEventWireup="true"
	CodeBehind="OuterInfoProcess.aspx.cs" Inherits="QuaManSys.OuterInfo.OuterInfoProcess"%>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

	<link rel="Stylesheet" type="text/css" href="../Css/QuaInfoPro.css" />
	<link rel="Stylesheet" type="text/css" href="../Css/Search.css" media="screen" />
	<link href="../Css/QuaInfoFd.css" rel="stylesheet" type="text/css" />
	<script language="javascript" type="text/javascript" src="../js/upload.js"></script>
	<script language="javascript" type="text/javascript" src="../Calendar/WdatePicker.js"></script>
	<script language="javascript" type="text/javascript" src="../CheckBox/checkBoxFunction.js"></script>
	<script type="text/javascript">
		document.title = "外部质量信息处理";


		function checkTime() {
			var fbkt = document.getElementById("<%=fdbktime.ClientID %>").value;
			var clst = document.getElementById("<%=lblCusRT.ClientID %>").value;
			if (fbkt == null || fbkt == "") { alert("请输入反馈时间"); return false; }
			if (clst == null || clst == "") { alert("请输入顾客要求闭环时间"); return false; }
			return true;
		}
		function clickSubmit() {
			var prot = document.getElementById("<%=txtProDL.ClientID %>").value;
			var projNo = document.getElementById("<%=ddlProNo.ClientID %>").value;
			if (prot == null || prot == "") { alert("请输入处理时限"); return false; }
			return confirm("分发后将不能修改，你确定要分发？");
		}
		function timeFilled() {
			var prot = document.getElementById("<%=txtProDate.ClientID %>").value;
			if (prot == null || prot == "") { alert("请输入处理时限"); return false; }
			return confirm("处理后将不能修改，你确定要提交？");
		}

	</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphInner" runat="server">

	<div id="keyWordsDiv" style="border: 2px solid #6FA1D9; display: none; position: absolute;
		top: 0px; left: 0px; width: 260px; height: auto; z-index: 3; background-color: #EAF1FD;">
		<div style="width: 260px; height: 20px; background-color: #6FA1D9">
			<ul style="cursor: pointer; line-height: 20px;">
				<li style="float: left" onclick="getCheckVale('<%=cblKeyWords.ClientID %>', '<%=txtKeyWords.ClientID %>')">
					[确定]</li>
				<li style="float: right" onclick="closeSelf('<%=cblKeyWords.ClientID %>')">[关闭]</li>
			</ul>
		</div>
		<div>
			<asp:CheckBoxList ID="cblKeyWords" runat="server" RepeatColumns="2" Style="width: 260px">
			</asp:CheckBoxList>
		</div>
	</div>
	<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
		<asp:View ID="RegistA" runat="server">
			<table border="1" cellspacing="0" cellpadding="0" width="100%" style="background-color: #FFFFFF;">
				<caption style="background-color: #FFFFFF;">
					<asp:Label ID="lblQuaInfo" Style="font-size: 20px" runat="Server" Font-Bold="True">质量信息反馈单</asp:Label></caption>
				<tr>
					<td>
						反馈单位
					</td>
					<td>
						<asp:TextBox ID="lblFdCom" runat="server" enabled="false"></asp:TextBox>
					</td>
					<td>
						反馈人
					</td>
					<td>
						<asp:TextBox ID="txtFdPer" runat="server" enabled="false"></asp:TextBox>
					</td>
					<td>
						反馈时间
					</td>
					<td>
						<asp:TextBox ID="fdbktime" runat="server" CssClass="Wdate" onClick="WdatePicker()"
							enabled="false"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td>
						处理要求
					</td>
					<td colspan="5">
						<asp:RadioButtonList ID="ProcssComd" runat="server" CssClass="ddlcolumn" RepeatLayout="Flow"
							RepeatColumns="3" enabled="false">
							<asp:ListItem Text="需协调处理">
							</asp:ListItem>
							<asp:ListItem Text="已处理，需在后续产品上改进    ">
							</asp:ListItem>
							<asp:ListItem Text="已处理，供阅知">
							</asp:ListItem>
						</asp:RadioButtonList>
					</td>
				</tr>
				<tr>
					<td rowspan="6">
						顾客信息描述
					</td>
					<td>
						顾客公司
					</td>
					<td colspan="2">
						<asp:TextBox ID="lblCusCo" runat="server" class="mytd" enabled="false"></asp:TextBox>
					</td>
					<td>
						相关公司名称
					</td>
					<td>
						<asp:TextBox ID="lblRelCo" runat="server" enabled="false"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td>
						顾客姓名
					</td>
					<td colspan="2">
						<asp:TextBox ID="lblCusNam" runat="server" class="mytd" enabled="false"></asp:TextBox>
					</td>
					<td>
						顾客角色
					</td>
					<td>
						<asp:TextBox ID="lblCusRol" runat="server" enabled="false"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td>
						联系方式
					</td>
					<td colspan="4">
						<asp:TextBox ID="lblCusTel" runat="server" class="mytd" enabled="false"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td>
						顾客要求闭环时间
					</td>
					<td colspan="4">
						<asp:TextBox ID="lblCusRT" runat="server" Style="margin-left: 0; margin-right: 0;
							width: 100%" CssClass="Wdate" onclick="WdatePicker()" enabled="false"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td>
						顾客对此事态度
					</td>
					<td colspan="4">
						<asp:RadioButtonList ID="CareLevel" runat="server" CssClass="ddlcolumn" RepeatColumns="3"
							RepeatLayout="Flow" enabled="false">
							<asp:ListItem Text="一般">
							</asp:ListItem>
							<asp:ListItem Text="关注">
							</asp:ListItem>
							<asp:ListItem Text="非常关注">
							</asp:ListItem>
						</asp:RadioButtonList>
					</td>
				</tr>
				<tr>
					<td>
						其他信息
					</td>
					<td colspan="4">
						<asp:TextBox ID="TextBox4" runat="server" TextMode="MultiLine" class="mytd" enabled="false"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td>
						质量信息描述
					</td>
					<td colspan="5">
						<asp:TextBox ID="TextBox2" runat="server" TextMode="MultiLine" class="mytd" enabled="false"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td>
						顾客要求或建议处置方案
					</td>
					<td colspan="5">
						<asp:TextBox ID="TextBox3" runat="server" TextMode="MultiLine" class="mytd" enabled="false"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td>
						建议后继处理要求
					</td>
					<td colspan="5">
						<asp:RadioButtonList ID="CustmReq" runat="server" RepeatLayout="Flow" enabled="false">
							<asp:ListItem Text="需从技术方面进一步向顾客说明">
							</asp:ListItem>
							<asp:ListItem Text="需从质量管理方面进一步向顾客说明">
							</asp:ListItem>
							<asp:ListItem Text="需启动顾客关系修复流程">
							</asp:ListItem>
							<asp:ListItem Text="不需要后续处理，请从下面文本框说明">
							</asp:ListItem>
						</asp:RadioButtonList>
						<asp:TextBox ID="instruction" runat="server" class="myTB" enabled="false"></asp:TextBox>
					</td>
				</tr>
			</table>
			<div style="text-align: center; background-color: #ffffff;">
				<asp:Button ID="nextstep" runat="server" Text="下一页->" OnClick="nextstep_Click" OnClientClick="return checkTime()"
					BackColor="#1a5ab8" Font-Bold="False" Font-Size="Medium" Height="23px" Width="75px"
					ForeColor="White" />
			</div>
		</asp:View>
		<asp:View ID="View1" runat="server">
			<table border="1" cellspacing="0" cellpadding="0" width="100%" style="background-color: #FFFFFF;">
				<caption style="background-color: #FFFFFF;">
					<asp:Label ID="lblQuaInfoPro" Style="font-size: 20px" runat="Server" Font-Bold="True">质量信息处理表</asp:Label>
				</caption>
				<tr class="noline">
					<td>
						编号：
					</td>
					<td colspan="5">
						<asp:Label ID="lblQuaInfoProNo" runat="server"></asp:Label>
					</td>
				</tr>
				<tr>
					<td>
						信息类别
					</td>
					<td colspan="3">
						<asp:TextBox ID="txtSearch" name="txtSearch" size="30" class="mytd" enabled="false"
							runat="server">
						</asp:TextBox><div id="Div1" style="display: none">
						</div>
					</td>
					<td>
						重要级别
					</td>
					<td>
						<asp:DropDownList ID="txtImpLev" runat="server" class="mytd" enabled="false">
							<asp:ListItem Text="高"></asp:ListItem>
							<asp:ListItem Text="中"></asp:ListItem>
							<asp:ListItem Text="低"></asp:ListItem>
						</asp:DropDownList>
					</td>
				</tr>
				<tr>
					<td>
						机型
					</td>
					<td>
						<asp:Label ID="txtlblMacTyp" runat="server" Text="txtMacTyp" Enabled="false"></asp:Label>
					</td>
					<td>
						机号
					</td>
					<td>
						<asp:Label ID="txtlblMacNo" runat="server" Text="Label" Enabled="false"></asp:Label>
					</td>
					<td>
						工程编号
					</td>
					<td>
						<asp:DropDownList ID="ddlProNo" runat="server" class="mytd" AutoPostBack="True" enabled="false">
						</asp:DropDownList>
					</td>
				</tr>
				<tr>
					<td>
						零部件
					</td>
					<td colspan="3">
						<asp:TextBox ID="txtComponent" runat="server" class="mytd" enabled="false"></asp:TextBox>
					</td>
					<td>
						故障类型
					</td>
					<td>
						<asp:TextBox ID="txtFaiTyp" runat="server" class="mytd" enabled="false"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td>
						生产厂家
					</td>
					<td colspan="5">
						<asp:TextBox ID="txtManufac" runat="server" class="mytd" enabled="false"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td>
						项目分类
					</td>
					<td colspan="2">
						<asp:TextBox ID="txtPjCls" runat="server" class="mytd" Enabled="false"></asp:TextBox>
					</td>
					<td>
						名称
					</td>
					<td colspan="2">
						<asp:TextBox ID="txtPjNam" runat="server" class="mytd" Enabled="false"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td>
						责任部门
					</td>
					<td colspan="2">
						<asp:DropDownList ID="ResponDept" runat="server" class="mytd" OnSelectedIndexChanged="ResponDept_SelectedIndexChanged"
							AutoPostBack="true" Enabled="false">
						</asp:DropDownList>
					</td>
					<td>
						处理时限
					</td>
					<td colspan="2">
						<asp:TextBox ID="txtProDL" runat="server" CssClass="Wdate" Style="margin-left: 0;
							margin-right: 0; width: 100%" onclick="WdatePicker()" Enabled="false"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td>
						关注部门
					</td>
					<td colspan="5">
						<asp:TextBox ID="txtKeyWords" runat="server" class="mytd" onclick="locking(this)"
							enabled="false"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td>
						描述
					</td>
					<td colspan="5">
						<asp:TextBox ID="txtInfoDsc" runat="server" class="mytd" TextMode="MultiLine" enabled="false"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td>
						信息分类
					</td>
					<td colspan="5">
						<asp:RadioButtonList ID="InfoCls" runat="server" RepeatLayout="Flow" RepeatColumns="2"
							enabled="false">
							<asp:ListItem Text="已处理（需后继关注）">
							</asp:ListItem>
							<asp:ListItem Text="未处理（需跟踪解决）">
							</asp:ListItem>
						</asp:RadioButtonList>
					</td>
				</tr>
				<tr>
					<td>
						处理要求和意见
					</td>
					<td colspan="5">
						<asp:TextBox ID="txtReqAdv" runat="server" TextMode="MultiLine" class="mytd" enabled="false"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td>
						信息处理结果
					</td>
					<td colspan="5">
						<asp:TextBox ID="txtReqRsl" runat="server" TextMode="MultiLine" class="mytd"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td>
						质量信息处理评价
					</td>
					<td colspan="5">
						<asp:TextBox ID="txtProCmm" runat="server" TextMode="MultiLine" class="mytd"></asp:TextBox>
					</td>
				</tr>
			

			<asp:Repeater ID="Repeater1" runat="server" DataSourceID="EntityProcess">
				<HeaderTemplate>
					
						<tr>
							<td>
								<b>处理部门</b>
							</td>
							<td>
								<b>处理人</b>
							</td>
							<td colspan="3">
								<b>处理意见</b>
							</td>
							<td>
								<b>处理时间</b>
							</td>
						</tr>
				</HeaderTemplate>
				<ItemTemplate>
					<tr>
						<td>
							<asp:Label runat="server" ID="Label1" Text='<%# Eval("processerDepart") %>' />
						</td>
						<td>
							<asp:Label runat="server" ID="Label2" Text='<%# Eval("processerName") %>' />
						</td>
						<td colspan="3">
							<asp:Label runat="server" ID="Label5" Text='<%# Eval("opinion") %>' />
						</td>
						<td>
							<asp:Label runat="server" ID="Label6" Text='<%# Eval("processingDate", "{0:yyyy/MM/dd}") %>' />
						</td>
					</tr>
				</ItemTemplate>
				<FooterTemplate>
					
					
				</FooterTemplate>
			</asp:Repeater>
		   
			<asp:EntityDataSource ID="EntityProcess" runat="server" ConnectionString="name=QuaManSysEntities"
				DefaultContainerName="QuaManSysEntities" EnableFlattening="False" EntitySetName="OuterQualityInfoPro"
				Select="it.[qualityInfoId], it.[processerName], it.[processerDepart], it.[processingDate], it.[opinion]"
				Where="it.[qualityInfoId]=@qualityInfoId">
				<WhereParameters>
					<asp:ControlParameter ControlID="lblQuaInfoProNo" Name="qualityInfoId" Type="String" />
				</WhereParameters>
			</asp:EntityDataSource>
			<asp:Panel ID="pnlLoadin" runat="server">
			 
				  <tr>
						<td>
							<asp:TextBox ID="txtProDept" runat="server"></asp:TextBox>
						</td>
						<td>
							<asp:TextBox ID="txtProName" runat="server"></asp:TextBox>
						</td>
						<td colspan="3">
							<asp:TextBox ID="txtProOpn" runat="server"></asp:TextBox>
						</td>
						<td>
							<asp:TextBox ID="txtProDate" runat="server" CssClass="Wdate" onClick="WdatePicker()"></asp:TextBox>
						</td>
					</tr>
					</asp:Panel>
				</table>
			<div style="text-align: center; background-color: #ffffff;">
				<asp:Button ID="prestep" runat="server" Text="<-上一页" OnClick="prestep_Click" BackColor="#1a5ab8"
					Font-Bold="False" Font-Size="Medium" Height="23px" Width="75px" ForeColor="White" />
				<asp:Button ID="btnRollback" runat="server" Text="回 退" OnClick="btnRollback_Click"
					OnClientClick="return confirm('你确定要回退？')" BackColor="#1a5ab8" Font-Bold="False"
					Font-Size="Medium" Height="23px" Width="75px" ForeColor="White" />&nbsp; &nbsp;
				<asp:Button ID="finish" runat="server" Text="处理完成" OnClick="finish_Click" BackColor="#1a5ab8"
					Font-Bold="False" Font-Size="Medium" Height="23px" Width="75px" ForeColor="White" OnClientClick="return confirm('你确定要提交？')" />
				
				<asp:Button ID="lnkInsert" Text="处理" runat="server" OnClick="InsertProinfo" OnClientClick="return timeFilled()"></asp:Button>
						
			</div>
			<asp:Panel ID="Panel1" runat="server">
			<table class="table_bt" runat="server" cellpadding="2" cellspacing="1" >
				<tr class="noline">
					<td>
						<input id="Button_add_fj" onclick="return additem('TABLE_D')" type="button" value="继续添加附件"
							class="btn_big" style="height: 20px; width: 60px" />
					</td>
				</tr>
			</table>
			</asp:Panel>
			
			<asp:Repeater ID="attatch" runat="server" OnItemCommand="OnItemCommand">
				<HeaderTemplate>
					<table>
				</HeaderTemplate>
				<ItemTemplate>
					<tr>
						<td>
							<asp:TextBox ID="attatchName" ReadOnly="true" Text='<%#DataBinder.Eval(Container.DataItem, "Name") %>'
								runat="server"></asp:TextBox>
						</td>
						<td>
							<asp:Button ID="d1" Text="删除" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "Name") %>'
								CommandName="delete" OnClientClick="return confirm('确定要删除？');" />
						</td>
						<td>
							<asp:Button ID="d2" Text="下载" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "Name") %>'
								CommandName="download" />
						</td>
					</tr>
				</ItemTemplate>
				<FooterTemplate>
					</table>
				</FooterTemplate>
			</asp:Repeater>
			<asp:Panel ID="Panel2" runat="server">
			<input type="hidden" id="hidden" runat="server" value="1" />
			<table width="100%" class="noline" id="TABLE_D">
				<tr>
					<td>
						<input id="FileUploadD1" type="file" size="40" cssclass="a_search" runat="server" />
					</td>
					<td>
						<input onclick="return deleteitem(this);" type="button" value="删除" style="width:120px"/>
					</td>
				</tr>
			</table>
			</asp:Panel>
		</asp:View>
	</asp:MultiView>

</asp:Content>
